home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / netprog.zip / NETPROG.TAR / ipc / mesg.h < prev    next >
Text File  |  1989-12-17  |  513b  |  19 lines

  1. /*
  2.  * Definition of "our" message.
  3.  *
  4.  * You may have to change the 4096 to a smaller value, if message queues
  5.  * on your system were configured with "msgmax" less than 4096.
  6.  */
  7.  
  8. #define    MAXMESGDATA    (4096-16)
  9.                 /* we don't want sizeof(Mesg) > 4096 */
  10.  
  11. #define    MESGHDRSIZE    (sizeof(Mesg) - MAXMESGDATA)
  12.                 /* length of mesg_len and mesg_type */
  13.  
  14. typedef struct {
  15.   int    mesg_len;    /* #bytes in mesg_data, can be 0 or > 0 */
  16.   long    mesg_type;    /* message type, must be > 0 */
  17.   char    mesg_data[MAXMESGDATA];
  18. } Mesg;
  19.